package com.example.origin.finance.trade.dto;

import com.example.origin.finance.dto.XueqiuCashFlow;
import com.example.origin.finance.dto.XueqiuIndicator;
import com.example.origin.finance.dto.XueqiuKline;
import lombok.Data;
import org.springframework.util.MultiValueMap;

import java.util.List;

@Data
public abstract class Analyst {
    private List<InfoResource> infoResources;
    private MultiValueMap<String, TradeRecord> tradeRecordMap;

    protected abstract Conclusion conclusion();

    protected InfoResource getInfoResource() {
        return getInfoResources().get(getInfoResources().size() - 1);
    }

    protected XueqiuKline getKline() {
        return getInfoResource().getKline();
    }

    protected List<XueqiuKline> getMoreKlines() {
        return getInfoResource().getMoreKlines();
    }

    protected List<XueqiuIndicator> getMoreIndicators() {
        return getInfoResource().getMoreIndicators();
    }

    protected List<XueqiuCashFlow> getMoreCashFlows() {
        return getInfoResource().getMoreCashFlows();
    }

    protected List<XueqiuIndicator> getTwoIndicators() {
        return getInfoResource().getTwoIndicators();
    }

    protected List<XueqiuCashFlow> getTwoCashFlows() {
        return getInfoResource().getTwoCashFlows();
    }



}
